package com.cxrj.zhsq.base.controller;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class JumpController {
	/**
	 * 跳转登录页面
	 * 
	 * @return
	 */
	@RequestMapping("jump_login")
	public ModelAndView jump_login() {
		return new ModelAndView("WEB-INF/jsp/login");
	}

	/**
	 * 跳转欢迎页面
	 * 
	 * @return
	 */
	@RequestMapping("jump_welcome")
	public ModelAndView jump_welcome() {
		return new ModelAndView("WEB-INF/jsp/welcome");
	}

	/**
	 * 跳转首页
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_index")
	public ModelAndView jump_index(String a, HttpServletRequest request) {
		Map<String, Object> resultMap = new HashMap<String, Object>();
		// if (a.equals("")) {
		// request.getSession().invalidate();
		// return new ModelAndView("WEB-INF/jsp/login");
		// }
		// resultMap.put("roleId", a);
		return new ModelAndView("WEB-INF/jsp/index", "map", resultMap);
	}

	/**
	 * 跳转菜单管理页
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_menu")
	public ModelAndView jump_menu() {
		return new ModelAndView("WEB-INF/jsp/userManage/meau_info");
	}

	/**
	 * 跳转角色表格页
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_role")
	public ModelAndView jump_role() {
		return new ModelAndView("WEB-INF/jsp/userManage/role_info");
	}

	/**
	 * 跳转社区页
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_organization")
	public ModelAndView jump_organization() {
		return new ModelAndView("WEB-INF/jsp/userManage/organization_info");
	}

	/**
	 * 跳转社区详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_organization_edit")
	public ModelAndView jump_organization_edit(Integer id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/userManage/organization_edit", "map", map);
	}

	/**
	 * 跳转用户管理页
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_user")
	public ModelAndView jump_user() {
		return new ModelAndView("WEB-INF/jsp/userManage/user_info");
	}

	/**
	 * 跳转日志页面
	 * 
	 * @return
	 */
	@RequestMapping("jump_log")
	public ModelAndView jump_log() {
		return new ModelAndView("WEB-INF/jsp/userManage/log_info");
	}

	/**
	 * 房屋管理
	 * 
	 * @return
	 */
	@RequestMapping("jump_houseInfo")
	public ModelAndView jump_houseInfo() {
		return new ModelAndView("WEB-INF/jsp/housePropertyManage/house_info");
	}

	/**
	 * 批量添加房屋
	 * 
	 * @return
	 */
	@RequestMapping("jump_addHouseList")
	public ModelAndView jump_addHouseList() {
		return new ModelAndView("WEB-INF/jsp/housePropertyManage/houseList_add");
	}

	/**
	 * 修改房屋信息
	 * 
	 * @param id
	 * @return
	 */
	@RequestMapping(value = "jump_editHouse")
	public ModelAndView jump_editHouse(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/housePropertyManage/house_edit", "map", map);
	}

	/**
	 * 跳转服务人员类别
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_personnel_info")
	public ModelAndView jump_personnel_info() {
		return new ModelAndView("WEB-INF/jsp/personnelManage/personnel_info");
	}

	/**
	 * 跳转服务人员详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_personnel_edit")
	public ModelAndView jump_personnel_edit(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/personnelManage/personnel_edit", "map", map);
	}

	/**
	 * 跳转社区通知
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_notice_info")
	public ModelAndView jump_notice_info() {
		return new ModelAndView("WEB-INF/jsp/noticeManage/notice_info");
	}
	
	/**
	 * 跳转用户通知
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_notice_info1")
	public ModelAndView jump_notice_info1() {
		return new ModelAndView("WEB-INF/jsp/noticeManage/notice_info1");
	}

	/**
	 * 跳转社区通知详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_notice_edit")
	public ModelAndView jump_notice_edit(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/noticeManage/notice_edit", "map", map);
	}
	
	/**
	 * 跳转用户通知详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_notice_edit1")
	public ModelAndView jump_notice_edit1(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/noticeManage/notice_edit1", "map", map);
	}

	/**
	 * 跳转工单类型
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_property_type_info")
	public ModelAndView jump_property_type_info() {
		return new ModelAndView("WEB-INF/jsp/workorderManage/property_type_info");
	}

	/**
	 * 跳转工单
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_property_workorder_info")
	public ModelAndView jump_property_workorder_info() {
		return new ModelAndView("WEB-INF/jsp/workorderManage/property_workorder_info");
	}

	/**
	 * 跳转工单详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_property_workorder_edit")
	public ModelAndView jump_property_workorder_edit(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/workorderManage/property_workorder_edit", "map", map);
	}

	/**
	 * 跳转工单详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_property_workorder_edit1")
	public ModelAndView jump_property_workorder_edit1(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/workorderManage/property_workorder_edit1", "map", map);
	}

	/**
	 * 跳转工单详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_property_workorder_edit2")
	public ModelAndView jump_property_workorder_edit2(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/workorderManage/property_workorder_edit2", "map", map);
	}

	/**
	 * 业主管理
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_propertyOwner")
	public ModelAndView jump_propertyOwner() {
		return new ModelAndView("WEB-INF/jsp//housePropertyManage/owner_info");
	}

	/**
	 * 添加业主
	 * 
	 * @param id
	 * @return
	 */
	@RequestMapping(value = "jump_addOwner")
	public ModelAndView jump_addOwner(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/housePropertyManage/owner_edit", "map", map);
	}
	
	/**
	 * 车位区域管理
	 * @return
	 */
	@RequestMapping(value = "jump_parkingRegion")
	public ModelAndView jump_parkingRegion() {
		return new ModelAndView("WEB-INF/jsp/parkingLotManage/parking_region_info");
	}
	
	/**
	 * 添加车位区域
	 * @param id
	 * @return
	 */
	@RequestMapping(value = "jump_addParkingRegion")
	public ModelAndView jump_addParkingRegion(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/parkingLotManage/parking_region_edit", "map", map);
	}
	
	/**
	 * 车位设置
	 * @return
	 */
	@RequestMapping(value = "jump_parkingSpace")
	public ModelAndView jump_parkingSpace() {
		return new ModelAndView("WEB-INF/jsp/parkingLotManage/parking_space_info");
	}
	
	/**
	 * 车位租赁状态图
	 * @return
	 */
	@RequestMapping(value = "jump_parkingChart")
	public ModelAndView jump_parkingChart() {
		return new ModelAndView("WEB-INF/jsp/parkingLotManage/parking_chart");
	}
	
	/**
	 * 批量添加
	 * @return
	 */
	@RequestMapping(value = "jump_addParkingSpaceList")
	public ModelAndView jump_addParkingSpaceList() {
		return new ModelAndView("WEB-INF/jsp/parkingLotManage/parking_space_list_add");
	}
	
	/**
	 * 添加或修改
	 * @param id
	 * @return
	 */
	@RequestMapping(value = "jump_editParkingSpace")
	public ModelAndView jump_editParkingSpace(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/parkingLotManage/parking_space_edit", "map", map);
	}
	
	/**
	 * 跳转业主成员列表
	 * @param id
	 * @param state
	 * @return
	 */
	@RequestMapping(value = "jump_lookPeople")
	public ModelAndView jump_lookPeople(String id,String state) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		map.put("state", state);
		return new ModelAndView("WEB-INF/jsp/parkingLotManage/parking_space_people", "map", map);
	}
	
	/**
	 * 成员管理
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_propertyMember")
	public ModelAndView jump_propertyMember() {
		return new ModelAndView("WEB-INF/jsp/housePropertyManage/member_info");
	}

	/**
	 * 添加成员
	 * 
	 * @param id
	 * @return
	 */
	@RequestMapping(value = "jump_addMember")
	public ModelAndView jump_addMember(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/housePropertyManage/member_add", "map", map);
	}

	/**
	 * 跳转资源库
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_property_resource_info")
	public ModelAndView jump_property_resource_info() {
		return new ModelAndView("WEB-INF/jsp/workorderManage/property_resource_info");
	}

	/**
	 * 跳转资源库详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_property_resource_edit")
	public ModelAndView jump_property_resource_edit(String id, String pId) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		map.put("pId", pId);
		return new ModelAndView("WEB-INF/jsp/workorderManage/property_resource_edit", "map", map);
	}

	/**
	 * 跳转物业账单
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_balance_info")
	public ModelAndView jump_balance_info() {
		return new ModelAndView("WEB-INF/jsp/propertyManage/balance_info");
	}

	/**
	 * 跳转智能门禁
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_entrance_guard_info")
	public ModelAndView jump_entrance_guard_info() {
		return new ModelAndView("WEB-INF/jsp/deviceManage/entrance_guard_info");
	}

	@RequestMapping(value = "jump_ladder_control_info")
	public ModelAndView jump_ladder_control_info() {
		return new ModelAndView("WEB-INF/jsp/deviceManage/ladder_control_info");
	}

	@RequestMapping(value = "jump_res_info")
	public ModelAndView jump_res_info() {
		return new ModelAndView("WEB-INF/jsp/deviceManage/res_info");
	}

	/**
	 * 跳转缴费配置
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_payment_info")
	public ModelAndView jump_payment_info() {
		return new ModelAndView("WEB-INF/jsp/propertyManage/payment_info");
	}

	/**
	 * 跳转活动类型设置
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_activity_type_info")
	public ModelAndView jump_activity_type_info() {
		return new ModelAndView("WEB-INF/jsp/activityManage/activity_type_info");
	}

	/**
	 * 跳转活动类型详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_activity_type_edit")
	public ModelAndView jump_activity_type_edit(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/activityManage/activity_type_edit", "map", map);
	}

	/**
	 * 跳转活动设置
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_activity_info")
	public ModelAndView jump_activity_info() {
		return new ModelAndView("WEB-INF/jsp/activityManage/activity_info");
	}

	/**
	 * 跳转活动详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_activity_edit")
	public ModelAndView jump_activity_edit(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/activityManage/activity_edit", "map", map);
	}
	
	/**
	 * 跳转租借类型设置
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_goods_type_info")
	public ModelAndView jump_goods_type_info() {
		return new ModelAndView("WEB-INF/jsp/leaseManage/goods_type_info");
	}

	/**
	 * 跳转活动类型详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_goods_type_edit")
	public ModelAndView jump_goods_type_edit(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/leaseManage/goods_type_edit", "map", map);
	}
	
	/**
	 * 跳转租借信息
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_goods_info")
	public ModelAndView jump_goods_info() {
		return new ModelAndView("WEB-INF/jsp/leaseManage/goods_info");
	}

	/**
	 * 跳转租借详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_goods_edit")
	public ModelAndView jump_goods_edit(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/leaseManage/goods_edit", "map", map);
	}
	
	/**
	 * 跳转上门类型设置
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_service_type_info")
	public ModelAndView jump_service_type_info() {
		return new ModelAndView("WEB-INF/jsp/serviceManage/service_type_info");
	}

	/**
	 * 跳转活上门类型详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_service_type_edit")
	public ModelAndView jump_service_type_edit(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/serviceManage/service_type_edit", "map", map);
	}
	
	/**
	 * 跳转上门信息
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_service_info")
	public ModelAndView jump_service_info() {
		return new ModelAndView("WEB-INF/jsp/serviceManage/service_info");
	}

	/**
	 * 跳转上门详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_service_edit")
	public ModelAndView jump_service_edit(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/serviceManage/service_edit", "map", map);
	}
	
	/**
	 * 跳转房产线下缴费
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_house_pay")
	public ModelAndView jump_house_pay() {
		return new ModelAndView("WEB-INF/jsp/payManage/house_pay");
	}
	
	/**
	 * 跳转房产线下缴费详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_house_pay_detail")
	public ModelAndView jump_house_pay_detail(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/payManage/house_pay_detail", "map", map);
	}
	
	/**
	 * 跳转车位线下缴费
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_car_pay")
	public ModelAndView jump_car_pay() {
		return new ModelAndView("WEB-INF/jsp/payManage/car_pay");
	}
	
	/**
	 * 跳转车位线下出租
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_car_pay_lease")
	public ModelAndView jump_car_pay_lease(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/payManage/car_pay_lease", "map", map);
	}
	
	/**
	 * 跳转车位线下出售详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_car_pay_sell")
	public ModelAndView jump_car_pay_sell(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/payManage/car_pay_sell", "map", map);
	}
	
	/**
	 * 跳转通知类型管理
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_notice_type_info")
	public ModelAndView jump_notice_type_info(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/noticeManage/notice_type_info", "map", map);
	}
	
	/**
	 * 跳转通知类型管理详情
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_notice_type_edit")
	public ModelAndView jump_notice_type_edit(String id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return new ModelAndView("WEB-INF/jsp/noticeManage/notice_type_edit", "map", map);
	}
	
	/**
	 * 跳转打印预览
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_property_workorder_print")
	public ModelAndView jump_property_workorder_print() {
		return new ModelAndView("WEB-INF/jsp/workorderManage/property_workorder_print");
	}
	
	/**
	 * 跳转打印预览
	 * 
	 * @return
	 */
	@RequestMapping(value = "jump_house_pay_print")
	public ModelAndView jump_house_pay_print() {
		return new ModelAndView("WEB-INF/jsp/payManage/house_pay_print");
	}
}
